
function SearchUtil(context,action){
	this.context = context;
	this.action = context + action;
}

SearchUtil.prototype = {
	doSearch:function(objtxt) {
		var queryValue = document.getElementById(objtxt).value;
		document.getElementById('queryExpression').value = queryValue;
		document.getElementById('pageNo').value = 1;
		document.getElementById("advanceQueryExpression").value = "";
		
		var theForm = document.forms[0];
		//theForm.action = this.action + "?action=doSearch";
		theForm.submit();
	},
	toPage:function(pageNo) {
		document.getElementById('pageNo').value = pageNo;
		
		var theForm = document.forms[0];
		//theForm.action = this.action + "?action=doSearch";
		theForm.submit();
	}
}